<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('opinion')} > Edit Suggestion">
	<a href="#" onclick="cc('offering/showListOpinion.sgt?offeringId=${(offering.id)!}')">${i18n.getMessage('opinion')}</a>
	- <a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${(offering.id)!}')">${i18n.getMessage('offering')}</a>
</@showTitle>

<div id="error" style="display:none"></div>

<form action="offering/editSuggestion.sgt" onsubmit="submitForm(this); return false;" onreset="$('error').hide()">
	<input type="hidden" name="id" value="${model.id}"/>
	<input type="hidden" name="offeringId" value="${offering.id}"/>
	
	<table id="dataTable" align="center" cellspacing="5" cellpadding="0">
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('content')}:</td>
			<td><textarea name="content" style="width:350px;height:80px;">${(model.content)!}</textarea></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="submit" value="${i18n.getMessage('edit')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/> 
			</td>
		</tr>
	</table>
</form>

<script>
	$('error').hide();
</script>